package com.nofeng.wx.service.stock;

import java.util.ArrayList;
import java.util.List;

// 回测结果类
public class BacktestResult {
    List<TradeRecord> trades = new ArrayList<>();

    StockInfo stock;

    String atr21;

    double maxDrawDownConfig;
    double totalReturn;

    boolean isToDayBuy;
    boolean isToDaySell;
    boolean isHolding;

    public boolean isHolding() {
        return isHolding;
    }

    public void setHolding(boolean holding) {
        isHolding = holding;
    }

    public boolean isToDaySell() {
        return isToDaySell;
    }

    public void setToDaySell(boolean toDaySell) {
        isToDaySell = toDaySell;
    }

    public double getMaxDrawDownConfig() {
        return maxDrawDownConfig;
    }

    public void setMaxDrawDownConfig(double maxDrawDownConfig) {
        this.maxDrawDownConfig = maxDrawDownConfig;
    }


    public boolean isToDayBuy() {
        return isToDayBuy;
    }

    public void setToDayBuy(boolean toDayBuy) {
        isToDayBuy = toDayBuy;
    }

    public List<TradeRecord> getTrades() {
        return trades;
    }

    public void setTrades(List<TradeRecord> trades) {
        this.trades = trades;
    }

    public double getTotalReturn() {
        return totalReturn;
    }

    public void setTotalReturn(double totalReturn) {
        this.totalReturn = totalReturn;
    }

    public StockInfo getStock() {
        return stock;
    }

    public void setStock(StockInfo stock) {
        this.stock = stock;
    }

    public String getAtr21() {
        return atr21;
    }

    public void setAtr21(String atr21) {
        this.atr21 = atr21;
    }
}
